<template>
  <div class="header-all">
    <van-nav-bar
      :title="title"
      left-text="返回"
      left-arrow
      @click-left="onClickLeft"
    />
  </div>
</template>

<script>
export default {
  name: "all-header",
  props: { 
    title: { 
        default: '又玄数艺',
        type: String
    }
  },
  setup() {
    const onClickLeft = () => history.back();
    return {
      onClickLeft,
    };
  },
};
</script>


<style lang="scss">
.header-all { 
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #fff;
    z-index: 999;
}
.van-ellipsis { 
  font-weight: bold;
}
.van-nav-bar__text { 
    color: black;
}
.van-nav-bar .van-icon { 
    color: black;
}
</style>
